home *** CD-ROM | disk | FTP | other *** search
- Path: ts1-018.jaxnet.com!user
- From: garyg@jax.jaxnet.com (Gary M. Greenberg)
- Newsgroups: comp.lang.c
- Subject: Re: Sort Function
- Date: 2 Apr 1996 00:14:49 GMT
- Organization: Southeast Network Services, Inc.
- Message-ID: <garyg-0104961904250001@ts1-018.jaxnet.com>
- References: <4jmq99$cqi@freenet-news.carleton.ca>
- NNTP-Posting-Host: ts1-018.jaxnet.com
-
- In article <4jmq99$cqi@freenet-news.carleton.ca>,
- aq436@FreeNet.Carleton.CA (Jerry Boyd) wrote:
-
- > How would I WRITE a function (called sort3) that would
- > sort three integers (in assending order) by using pointers
- > and NOT arrays?
- >
-
- First, you sit at the keyboard.
- Second, you work out the logic of the program.
- Third, you check your ideas against the ANSI C Standard functions to
- determine that you aren't going to reinvent the wheel.
- Fourth, you use the keyboard.
- Fifth, you have a solution _or_ you post the minimal, compilable (sp?)
- snippet of code that didn't do what you wanted it to.
-
-
- C'ya,
-
- gary /* the Sorcerer's Apprentice */
- http:/jax.jaxnet.com/~garyg/main_page.html
-
- Free Speech in America murdered by the Communications Decency Act.
- (((U.S. Congress && Executive) == (Collective Moron)) == 1)
-